package com.estar.integaration.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author YJL
 * @since 2021-11-21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Entity
public class CartGoods implements Serializable {

    @Id
    private String id;

    /**
     * 商品id
     */
    private String materialId;

    /**
     * 购物车id
     */
    private String cartId;

    /**
     * 本次购买
     */
    private Double thisBuy;

    /**
     * 本次退货
     */
    private Double thisBack;

    /**
     * 产品id
     */
    private String productId;

}
